// Copyright (c) 2020 Presto Labs Pte. Ltd.
// Author: linchuan

#pragma once

#include <memory>
#include <string>

#include "coin2/exchange/base/order/order.h"
#include "coin2/exchange/bitflyer_futures/api_order/native_private_client.h"

namespace coin2::exchange::bitflyer_futures::api_order {

class BitflyerFuturesRestAsyncAsioSubscriber : public base::order::RestSubscriber {
 public:
  using RestParams = coin2::exchange::order::BitflyerRestParams;
  using RestClient = BitflyerFuturesNativePrivateClient;

 public:
  using RestSubscriber::RestSubscriber;
  auto rest_client() { return dynamic_cast<RestClient*>(rest_client_); }

  void QueryBalance();
  void QuerySpotBalance();
  void QueryPosition(const std::string& native_symbol);
  void QueryOpenOrders(const std::string& native_symbol);
  void QueryAllOrders(const std::string& native_symbol);
  void QueryFill(const std::string& native_symbol);
  void SubscribeAsync() override;
};

}  // namespace coin2::exchange::bitflyer_futures::api_order
